package api

import (
	"github.com/gogf/gf/v2/frame/g"
	"lot_admin_api/internal/model"
)

type DepartmentInfoRes struct {
	model.DepartmentIdRes
	model.DepartmentInfoReq
}

//AddDepartmentReq 新增部门
type AddDepartmentReq struct {
	g.Meta `path:"/department/add" tags:"部门模块" method:"post" summary:"新增部门"`
	*model.DepartmentInfoReq
}

//EditDepartmentReq 编辑部门
type EditDepartmentReq struct {
	g.Meta `path:"/department/update" tags:"部门模块" method:"post" summary:"编辑部门"`
	model.EditDepartment
}

type BatchDeleteDepartmentReq struct {
	g.Meta `path:"/department/branch-delete" tags:"部门模块" method:"delete" summary:"批量删除部门(该接口暂不开发)"`
	model.BranchDepartmentIdRes
}

type DeleteDepartmentReq struct {
	g.Meta `path:"/department/delete" tags:"部门模块" method:"delete" summary:"删除部门"`
	model.DepartmentIdReq
}

type GetDepartmentReq struct {
	g.Meta `path:"/department/info" tags:"部门模块" method:"get" summary:"获取当前部门的详情"`
	model.DepartmentIdReq
}

// DepartmentTreeReq 获取部门列表树状结构
type DepartmentTreeReq struct {
	g.Meta `path:"/department/tree-info" tags:"部门模块" method:"get" summary:"获取部门树状结构"`
	*model.DepartmentTreeRes
}

// DepartmentListReq 获取部门列表一维数组
type DepartmentListReq struct {
	g.Meta `path:"/department/list" tags:"部门模块" method:"get" summary:"获取部门列表"`
	*model.DepartmentListReq
}
